package saobei

const (
	baseUrl        = "https://pay.lcsw.cn/lcsw"
	sandboxBaseUrl = "http://test2.lcsw.cn:8117/lcsw"

	//PayTypeWX 支付方式:微信
	PayTypeWX = "010"
	//PayTypeAli 支付方式:支付宝
	PayTypeAli = "020"
	//PayTypeQQ 支付方式:QQ钱包
	PayTypeQQ = "060"
	//PayTypeYi 支付方式:翼支付
	PayTypeYi = "100"
	//PayTypeYL 支付方式:银联二维码
	PayTypeYL = "110"

	// pay_ver接口内业务逻辑兼容版本号
	PayVerOld = "201"
	PayVerNew = "202"

	// service_id接口类型
	ServiceIdBarcodePay       = "010" //付款码支付
	ServiceIdScanPay          = "011" //扫码支付（预支付）
	ServiceIdJsPay            = "012" //公众号支付接口
	ServiceIdMiniPay          = "015" //小程序支付接口
	ServiceIdQrPay            = "016" // 聚合码接口 / (刷脸)自助收银支付接口
	ServiceIdQuery            = "020" //支付查询
	ServiceIdRefund           = "030" //退款申请
	ServiceIdQueryRefund      = "031" //退款订单查询
	ServiceIdCancel           = "040" //撤销交易(只针对付款码支付)
	ServiceIdClose            = "041" //关闭订单
	ServiceIdAuthCodeToOpenid = "080" //付款码查询 OPENID 接口

	//ReturnCodeSuccess 响应码:01 成功  (仅代表通信状态，不代表业务结果)
	ReturnCodeSuccess = "01"
	//ReturnCodeFail 响应码:02 失败
	ReturnCodeFail = "02"

	//ResultCodeSuccess 业务结果:01 成功
	ResultCodeSuccess = "01"
	//ResultCodeFail 业务结果:02 失败
	ResultCodeFail = "02"
	//ResultCodePaying 业务结果:03 支付中
	ResultCodePaying = "03"

	//TradeStatusSuccess 交易订单状态:支付成功
	TradeStatusSuccess = "SUCCESS"
	//TradeStatusRefund 交易订单状态:转入退款
	TradeStatusRefund = "REFUND"
	//TradeStatusNotPay 交易订单状态:未支付
	TradeStatusNotPay = "NOTPAY"
	//TradeStatusClosed 交易订单状态:已关闭
	TradeStatusClosed = "CLOSED"
	//TradeStatusUserPaying 交易订单状态:用户支付中
	TradeStatusUserPaying = "USERPAYING"
	//TradeStatusRevoked 交易订单状态:已撤销
	TradeStatusRevoked = "REVOKED"
	//TradeStatusNoPay 交易订单状态:未支付支付超时
	TradeStatusNoPay = "NOPAY"
	//TradeStatusPayError 交易订单状态:支付失败
	TradeStatusPayError = "PAYERROR"
)
